package operation;

import book.Book;

import java.util.Scanner;

public class ModPrice extends Mod{
    @Override
    public void modify(Book book) {
        System.out.print("请输入新的图书价格：");
        Scanner scan = new Scanner(System.in);
        double pr = scan.nextDouble();
        book.setPrice(pr);
        System.out.println("图书价格编辑成功！");
    }
}
